<?php

namespace app\api\model\service;

use think\Model;
class ProjectConfigure extends Model
{
    // 表名
    protected $name = 'service_project_configure';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = '';

    public static function getProjectConfig()
    {
        return self::where('state',1)->field('userappid,usersecret,skillappid,skillsecret,shopappid,shopsecret,gaodekey')->cache(true,300)->find();
    }

}
